﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BOMS.Utility
{
    [Flags]
    public enum OnlineStatus
    {
         [Description("offline.png")]
        离线=0,
         [Description("online.png")]
        在线=1
    }

    [Flags]
    public enum GroupErrorStatus
    {
         //[Description("zc.gif")]
        /*
        无=0,
        [Description("dlyc.gif")]
        过压=1,
         [Description("dlyc.gif")]
        欠压=2,
         [Description("dyyc.gif")]
        过流=4,
          [Description("wdgg.gif")]
        过温=8,
         [Description("qt.gif")]
        内阻预警=16,
         [Description("qt.gif")]
        内阻不均=32,
         [Description("qt.gif")]
        内阻超限=64,
        预留=128   */

        //四川联通的定义
        [Description("txzd.gif")]
        温度传感器故障数超过3个=1,  //bit0
        [Description("dlyc.gif")]
        电池温度过高 = 2,              //bit1
         [Description("dlyc.gif")]
        散热器温度过高 = 4,           //bit2
         [Description("txzd.gif")]
         通信536错误 = 8,             //bit3
        [Description("dlyc.gif")]
         总电池过压 = 16,               //bit4
        [Description("dlyc.gif")]
        总电池欠压=32,
        [Description("dlyc.gif")]
        单节电池过压=64,
        [Description("dlyc.gif")]
        单节电池欠低 = 128,         //bit7
    }
    [Flags]
    public enum BatteryErrorStatus
    {
            [Description("zc.gif")]
        正常=0,

            [Description("dlyc.gif")]
        过压 = 1,

            [Description("dlyc.gif")]
        欠压 = 2,

            [Description("dyyc.gif")]
        过流 = 4,

            [Description("wdgg.gif")]
        过温 = 8,

            [Description("qt.gif")]
        内阻预警 = 16,

        [Description("qt.gif")]
        内阻超差 = 32,

        [Description("qt.gif")]
        内阻超限 = 64,

        [Description("qt.gif")]
        内阻异常 = 128,
        [Description("txzd.gif")]
        通讯超时 = 256,
        预留5 = 512,
        预留4 = 1024,
        预留3 = 2048,
        预留2 = 4096,        
        预留1 = 8192,
        预留0 = 16384,
        [Description("jh.gif")]
        均衡中 = 32768
    }
}
